//
//  HLEBaseResponse.h
//  HLENetwork_Example
//
//  Created by hle1879 on 2020/9/29.
//  Copyright © 2020 13434436448@163.com. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface HLEBaseResponse : NSObject<NSCoding>

@property(nonatomic,assign)BOOL success;//网络请求是否成功
@property(nonatomic,strong)NSURLResponse *response;//请求返回的response
@property(nonatomic,strong)id responseObject;//请求返回的对象
@property(nonatomic,strong)NSError *error;//请求返回的错误信息

- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)new NS_UNAVAILABLE;

- (instancetype)initWithResponse:(NSURLResponse * _Nullable)response responseObject:(id _Nullable)responseObject error:(NSError * _Nullable)error;

@end

NS_ASSUME_NONNULL_END
